package com.lottery.dao.qiuqiu.lobbyDao;

import com.lottery.entity.Playwayinfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 彩票玩法详情Playwayinfo表
 * 
 * @author Administrator
 *
 */
public interface PlaywayinfoDao {

	/**
	 * 查询Playwayinfo表list
	 * 
	 * @return
	 */
	List<Playwayinfo> selectPlaywayinfoList();

	/**
	 * 根据id查询Playwayinfo表的一条数据
	 * 
	 * @return
	 */
	Playwayinfo selectPlaywayinfoById(int id);

	/**
	 * 根据playway_name查询所有数据
	 */
	Playwayinfo selectPlaywayinfoByName(Map<String, Object> params);

	/**
	 * 插入一条数据
	 */
	void insertPlaywayinfoOne(Playwayinfo playwayinfo);

	/**
	 * 修改一条数据
	 */
	void updatePlaywayinfo(Playwayinfo playwayinfo);

	/**
	 * 根据彩票类型获取玩法信息
	 */
	List<Playwayinfo> selectPLByLotteryType(int lotteryType);

    List<Playwayinfo> selectPlaywayinfoListByLotteytype(@Param(value = "lotteyType") Integer lotteyType);
}
